{block name=report-classes}
{foreach $classterms as $ct}
<div class="row">
	<div class="col-sm-12">
		<h2>{$ct.class_name} {$ct.term_name}<!-- {$ct.agegroup_name} | {$ct.class_start_time|date_format:"%H:%M %p"} - {$ct.class_end_time|date_format:"%H:%M %p"} | {$ct.location_suburb}, {$ct.location_state} --></h2>
		<span class="pull-right">{$ct.availability.taken}/{$ct.availability.size}</span> 
	</div>
	<div class="col-sm-12">
		<table class="table table-striped">
			<thead>
				<th>Student Name</th>
				<th>Student DOB</th>
				<th>Parent Name</th>
				<th>Parent Surname</th>
				<th>Phone</th>
				<th>Email</th>
				<th>Enrolment Type</th>
				<th>Status</th>
			</thead>
			<tbody>
				{foreach $ct.students as $student}
					<tr}>
						<td>{$student.student_name}</td>
						<td>{$student.student_dob}</td>
						<td>{$student.user_gname}</td>
						<td>{$student.user_surname}</td>
						<td>{$student.address_telephone}</td>
						<td>{$student.user_email}</td>
						<td>{$student.enrolment_type_name}</td>
						<td>{if $student.enrolment_published eq 1}Active{else}Deleted{/if}</td>>
					</tr>
				{/foreach}
			</tbody>
		</table>
	</div>
</div>
{/foreach}
{/block} 


